package com.techedge.insidetrack

import org.springframework.transaction.annotation.*
import com.techedge.insidetrack.Insidetrack;

class StatisticsService {
	
	static transactional = false
	
    def totalTracks() {
		Insidetrack.count()
    }
	
	def latestTracks() {
		Insidetrack.list().sort{it.schedule}
	}

}